package top.braycep.ui;

import javax.swing.*;
import javax.swing.table.TableCellRenderer;
import java.awt.*;

public class ButtonRender extends JPanel implements TableCellRenderer {
    private JButton renderButton;

    public ButtonRender() {
        setOpaque(true);

        renderButton = new JButton("View");
        renderButton.setBounds(0, 0, 20, 20);

        setLayout(null);

        add(renderButton);
    }

    @Override
    public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
        return this;
    }
}
